const Koa = require('koa');

const app = new Koa();

app.use(async (ctx) => {
    console.log('querystring:', ctx.querystring);
    console.log('header:', ctx.header);
    console.log('charset:', ctx.request.charset);
    console.log('query:', ctx.request.query);
    ctx.body = 'Hello World';
});

app.listen(3000, () => {
    console.log('running on localhost:3000');
});
